package com.mcxx.modules.miniSalvation.family.service.write;

import com.mcxx.modules.miniSalvation.family.entity.FamilyMainTempEntity;
import com.mcxx.modules.miniSalvation.family.dao.write.FamilyMainTempWriteDao;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@TaTransactional
public class FamilyMainTempWriteService {

    @Autowired
    private FamilyMainTempWriteDao familyMainTempWriteDao;



    public int saveFamilyTemp(FamilyMainTempEntity familyMainTemp) {
    	return familyMainTempWriteDao.insert(familyMainTemp);
    }


    public int insertIgnoreNull(FamilyMainTempEntity familyMainTemp) {
    	return familyMainTempWriteDao.insertIgnoreNull(familyMainTemp);
    }


    public int update(FamilyMainTempEntity familyMainTemp) {
    	return familyMainTempWriteDao.update(familyMainTemp);
    }


    public int updateIgnoreNull(FamilyMainTempEntity familyMainTemp) {
    	return familyMainTempWriteDao.updateIgnoreNull(familyMainTemp);
    }


    public int delete(FamilyMainTempEntity familyMainTemp) {
    	return familyMainTempWriteDao.delete(familyMainTemp);
    }

}
